package com.touna.annotation;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

/**
 * author: xl
 * time: 2018/6/15 10:37
 * description:
 **/
@AnnotationHelloWorld(name = "xl")
public class ShowAnnotation {


    @AnnotationHelloWorld(color = "black")
    public String getClassName(){
        return "";
    }

    public static void main(String[] args) {
        AnnotationHelloWorld annotation = ShowAnnotation.class.getAnnotation(AnnotationHelloWorld.class);
        String name = annotation.name();
        System.out.println(name);



    }

}
